// 1.引入组件
import ThemePicker from './ThemePicker'
import EduYduiInput from './input'
import upload from './upload'
import eduHeader from './header'
import eduMenu from './menu'
import eduTab from './tab'
import eduEditor from './editor'

// 2.注册组件
const install = (Vue) => {
  Vue.component(ThemePicker.name, ThemePicker)
  Vue.component(EduYduiInput.name, EduYduiInput)
  Vue.component(upload.name, upload)
  Vue.component(eduHeader.name, eduHeader)
  Vue.component(eduMenu.name,eduMenu)
  Vue.component(eduTab.name,eduTab)
  Vue.component(eduEditor.name,eduEditor)
}

if (typeof window !== 'undefined' && window.Vue) {
  window.Vue.use(install)
}

export default {
  install
}
